let http=require('http')
let server=http.createServer()
let os=require('os')
console.log(os.hostname(),'66669')

let dns=require('dns')
dns.lookup('example.org',(err,address,family)=>{
    console.log(address,'6666',family)
})

console.log(__filename,'66**--')

server.listen(1111,()=>{
    console.log('服务开启')
})



process.on('uncaughtException',(err)=>{
    console.log(err)
})

server.close()

process.on('exit',()=>{
    console.log('6---------6')
})

